<template>

      <a-col :span="24">
        <div class="card-title">{{diseaseCode}}-1 患者入院病情评估</div>
        <div class="card-page">到达急诊室,完成ABCD2/3/3-I风险评分与分层：</div>
      </a-col>
        <a-col :span="span23.includes(disease.submitName)?24:12" v-for="disease in main1List">
          <div  v-if="disease.submitName=='STK-1-1-4'"  class="card-page">患者基础信息：</div>
          <div  v-else-if="disease.submitName=='STK-1-2-1'" class="card-page">急诊/门诊 就诊10分钟内神经功能缺损NIHSS评估：</div>
          <div  v-else-if="disease.submitName=='STK-1-3-1'" class="card-page">急诊/门诊 就诊30分钟内首次头部影像学检查：</div>
          <div  v-else-if="disease.submitName=='STK-1-4-1'" class="card-page">急诊/门诊 就诊45分钟内完成临床实验室（血生化、血细胞计数、凝血功能）诊断：</div>
          <div  v-else-if="disease.submitName=='STK-1-5-1'" class="card-page"> 急诊/门诊 或入院后首次心电图（ECG）检查：</div>
          <div  v-else-if="['STK-1-1-5','STK-1-5-2-1'].includes(disease.submitName)" class="card-page">&nbsp;</div>
          <a-form-item v-if="disease.useType=='number'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
          </a-form-item>
          <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-radio-group v-model:value="disease.defaltValue">
              <a-radio
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"
                  @change="changeRadio($event,disease.submitName)"
              >
                {{ dict.dictName }}
              </a-radio>
            </a-radio-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-select
                v-model:value="disease.defaltValue"
                placeholder="请选择属性类型" allow-clear
                @change="changeSelect($event,disease.submitName)"

            >
              <a-select-option
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"

              >
                {{ dict.dictName }}
              </a-select-option>
            </a-select>

          </a-form-item>
          <a-form-item v-if="disease.useType=='date1'&&disease.rootName=='root'&&(form1[disease.parentName] == null ||!form1[disease.parentName].includes('UTD'))" :label="disease.title" :name="disease.submitName">
            <a-date-picker  v-model:value="disease.defaltValue"
                            :format="disease.rule"
                            :valueFormat="disease.rule"
                            @change="dateInput($event,disease.submitName)"
                            :show-time="disease.rule.length>10 "
                            style="width: 100%;"
            />
          </a-form-item>
          <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-date-picker  v-model:value="disease.defaltValue"
                            :format="disease.rule"
                            :valueFormat="disease.rule"
                            @change="dateInput($event,disease.submitName)"
                            :show-time="disease.rule.length>10 "
                            style="width: 100%;"
            />
          </a-form-item>
          <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'

            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
              <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                          v-for="dict in disease.dictList"
                          :key="dict.dictCode">{{
                  dict.dictName
                }}</a-checkbox>
            </a-checkbox-group>
          </a-form-item>
          <div v-for="code in ['STK-1-2-1']">
            <a-col span="24" v-if="form1[code]=='a'">
              <div  v-if="disease.submitName=='STK-1-2-1-1'" class="card-page">急诊/门诊 首次评估时间与评估分值：</div>
              <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
                <a-select
                    v-model:value="disease.defaltValue"
                    placeholder="请选择属性类型" allow-clear
                    @change="changeSelect($event,disease.submitName)"

                >
                  <a-select-option
                      v-for="dict in disease.dictList"
                      :key="dict.dictCode"
                      :value="dict.dictCode"

                  >
                    {{ dict.dictName }}
                  </a-select-option>
                </a-select>

              </a-form-item>
              <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
                <a-radio-group v-model:value="disease.defaltValue">
                  <a-radio
                      v-for="dict in disease.dictList"
                      :key="dict.dictCode"
                      :value="dict.dictCode"
                      @change="changeRadio($event,disease.submitName)"
                  >
                    {{ dict.dictName }}
                  </a-radio>
                </a-radio-group>
              </a-form-item>
              <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
                <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
                  <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                              v-for="dict in disease.dictList"
                              :key="dict.dictCode">{{
                      dict.dictName
                    }}</a-checkbox>
                </a-checkbox-group>
              </a-form-item>
              <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
                <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
              </a-form-item>
              <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
                <a-date-picker  v-model:value="disease.defaltValue"
                                :format="disease.rule"
                                :valueFormat="disease.rule"
                                @change="dateInput($event,disease.submitName)"
                                :show-time="disease.rule.length>10 "
                                style="width: 100%;"
                />
              </a-form-item>
              <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
                <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
              </a-form-item>
            </a-col>
            <a-col span="24" v-if="form1[code]=='b'">
              <div v-if="disease.submitName=='STK-1-2-2-1'"  class="card-page">入院后首次评估时间与评估分值：</div>
              <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='STK-1-2-1-b'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
                <a-radio-group v-model:value="disease.defaltValue">
                  <a-radio
                      v-for="dict in disease.dictList"
                      :key="dict.dictCode"
                      :value="dict.dictCode"
                      @change="changeRadio($event,disease.submitName)"
                  >
                    {{ dict.dictName }}
                  </a-radio>
                </a-radio-group>
              </a-form-item>
              <a-form-item v-if="disease.useType=='date'&&disease.rootName=='STK-1-2-1-b'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
                <a-date-picker  v-model:value="disease.defaltValue"
                                :format="disease.rule"
                                :valueFormat="disease.rule"
                                @change="dateInput($event,disease.submitName)"
                                :show-time="disease.rule.length>10 "
                                style="width: 100%;"
                />
              </a-form-item>
              <a-form-item v-if="disease.useType=='number'&&disease.rootName=='STK-1-2-1-b'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
                <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
              </a-form-item>
            </a-col>
          </div>
          <div v-for="code in ['STK-1-3-1','STK-1-5-1']">
            <a-col span="24" v-if="form1[code]=='y'">
              <div  v-if="disease.submitName=='STK-1-2-1-1'" class="card-page">急诊/门诊 首次评估时间与评估分值：</div>
              <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
                <a-select
                    v-model:value="disease.defaltValue"
                    placeholder="请选择属性类型" allow-clear
                    @change="changeSelect($event,disease.submitName)"

                >
                  <a-select-option
                      v-for="dict in disease.dictList"
                      :key="dict.dictCode"
                      :value="dict.dictCode"

                  >
                    {{ dict.dictName }}
                  </a-select-option>
                </a-select>

              </a-form-item>
              <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
                <a-radio-group v-model:value="disease.defaltValue">
                  <a-radio
                      v-for="dict in disease.dictList"
                      :key="dict.dictCode"
                      :value="dict.dictCode"
                      @change="changeRadio($event,disease.submitName)"
                  >
                    {{ dict.dictName }}
                  </a-radio>
                </a-radio-group>
              </a-form-item>
              <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
                <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
                  <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                              v-for="dict in disease.dictList"
                              :key="dict.dictCode">{{
                      dict.dictName
                    }}</a-checkbox>
                </a-checkbox-group>
              </a-form-item>
              <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
                <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
              </a-form-item>
              <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
                <a-date-picker  v-model:value="disease.defaltValue"
                                :format="disease.rule"
                                :valueFormat="disease.rule"
                                @change="dateInput($event,disease.submitName)"
                                :show-time="disease.rule.length>10 "
                                style="width: 100%;"
                />
              </a-form-item>
              <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
                <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
              </a-form-item>
            </a-col>
          </div>
        </a-col>

  <a-col :span="24">
        <div class="card-title">{{diseaseCode}}-2 静脉溶栓处理情况</div>
        <div class="card-page">发病→到达急诊“绿色通道”时间评估：</div>
      </a-col>
  <a-col :span="span23.includes(disease.submitName)?24:12" v-for="disease in main2List">
    <div  v-if="disease.submitName=='STK-2-2-1'&&form1['STK-2-1-2']!='e'&&form1['STK-2-1-2']!='d'" class="card-page">溶栓禁忌症评估：</div>
    <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-select
          v-model:value="disease.defaltValue"
          placeholder="请选择属性类型" allow-clear
          @change="changeSelect($event,disease.submitName)"

      >
        <!--          disabled="disabled"-->
        <a-select-option
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"

        >
          {{ dict.dictName }}
        </a-select-option>
      </a-select>

    </a-form-item>
    <a-form-item   v-if="disease.useType=='number'&&disease.rootName=='root'&&(form1['STK-2-1-2']!='e')" :label="disease.title" :name="disease.submitName">
      <a-input-number disabled="disabled" v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
    </a-form-item>
    <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(form1['STK-2-1-1-1']==null||!form1['STK-2-1-1-1'].includes('UTD'))" :label="disease.title" :name="disease.submitName">
      <a-radio-group v-model:value="disease.defaltValue">
        <a-radio
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"
            @change="changeRadio($event,disease.submitName)"
        >
          {{ dict.dictName }}
        </a-radio>
      </a-radio-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
        <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                    v-for="dict in disease.dictList"
                    :key="dict.dictCode">{{
            dict.dictName
          }}</a-checkbox>
      </a-checkbox-group>
    </a-form-item>
      <div v-for="code in ['STK-2-1-2','STK-2-3-2','STK-15-1-0']">
        <a-col span="24" v-if="(code=='STK-15-1-0'&&form1[code]=='y')||(code=='STK-2-1-2'&&form1[code]!='d'&&form1[code]!='e')||(code=='STK-2-3-2'&&(form1[code]=='a'||form1[code]=='b'))">
          <div  v-if="code=='STK-2-3-2'&&disease.submitName=='STK-2-4-1-1-1'"  class="card-page">实施溶栓（治疗性操作）时间：</div>
          <div  v-if="code=='STK-2-3-2'&&disease.submitName=='STK-2-5-1-1'"  class="card-page">实施溶栓后72小时评估：</div>
          <div  v-if="code=='STK-2-3-2'&&disease.submitName=='STK-15-1-0'"  class="card-page">血管内治疗：</div>
          <div  v-if="code=='STK-2-3-2'&&['STK-2-4-2-1-1','STK-2-5-1-2-1'].includes(disease.submitName )"  class="card-page">&nbsp;</div>
          <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-select
                v-model:value="disease.defaltValue"
                placeholder="请选择属性类型" allow-clear
                @change="changeSelect($event,disease.submitName)"

            >
              <a-select-option
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"

              >
                {{ dict.dictName }}
              </a-select-option>
            </a-select>

          </a-form-item>
          <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-radio-group v-model:value="disease.defaltValue">
              <a-radio
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"
                  @change="changeRadio($event,disease.submitName)"
              >
                {{ dict.dictName }}
              </a-radio>
            </a-radio-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
              <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                          v-for="dict in disease.dictList"
                          :key="dict.dictCode">{{
                  dict.dictName
                }}</a-checkbox>
            </a-checkbox-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
          </a-form-item>
          <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
          </a-form-item>
          <a-form-item  v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-date-picker  v-model:value="disease.defaltValue"
                            :format="disease.rule"
                            :valueFormat="disease.rule"
                            @change="dateInput($event,disease.submitName)"
                            :show-time="disease.rule.length>10 "
                            style="width: 100%;"
            />
          </a-form-item>

        </a-col>
        <a-col span="24" v-if="code=='STK-2-3-2'&&form1['STK-2-2-1']=='b'&&form1[code]==null&&form1['STK-2-1-2']!='e'&&form1['STK-2-1-2']!='d'&&disease.submitName.startsWith('STK-15')">
          <div  v-if="code=='STK-2-3-2'&&disease.submitName=='STK-15-1-0'"  class="card-page">血管内治疗：</div>
          <div  v-if="code=='STK-2-3-2'&&['STK-2-4-2-1-1','STK-2-5-1-2-1'].includes(disease.submitName )"  class="card-page">&nbsp;</div>
          <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-radio-group v-model:value="disease.defaltValue">
              <a-radio
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"
                  @change="changeRadio($event,disease.submitName)"
              >
                {{ dict.dictName }}
              </a-radio>
            </a-radio-group>
          </a-form-item>

        </a-col>
      </div>


  </a-col>
   <a-col   :span="24">
      <div class="card-title">{{diseaseCode}}-3 房颤患者的抗凝药物使用情况</div>
  </a-col>
  <a-col :span="span23.includes(disease.submitName)?24:12" v-for="disease in main3List">
    <div  v-if="disease.submitName=='TIA-3-1-1-1'" class="card-page">具有高卒中复发风险因素：</div>
    <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-select
          v-model:value="disease.defaltValue"
          placeholder="请选择属性类型" allow-clear
          @change="changeSelect($event,disease.submitName)"

      >
        <a-select-option
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"

        >
          {{ dict.dictName }}
        </a-select-option>
      </a-select>

    </a-form-item>
    <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
    </a-form-item>
    <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-radio-group v-model:value="disease.defaltValue">
        <a-radio
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"
            @change="changeRadio($event,disease.submitName)"
        >
          {{ dict.dictName }}
        </a-radio>
      </a-radio-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-date-picker  v-model:value="disease.defaltValue"
                      :format="disease.rule"
                      :valueFormat="disease.rule"
                      @change="dateInput($event,disease.submitName)"
                      :show-time="disease.rule.length>10 "
                      style="width: 100%;"
      />
    </a-form-item>
    <div v-for="code in ['STK-3-1-1-1']">

      <a-col span="24" v-if=" form1[code]=='y'">
        <div  v-if="disease.submitName=='STK-3-1-1'&&disease.rootName==code" class="card-page">实施房颤患者脑卒中风险评估（CHA2DS2-VASc评分）：</div>
        <div  v-if="disease.submitName=='STK-3-4-1' &&disease.rootName==code" class="card-page">房颤鉴别STAF评分：</div>
        <div  v-if="disease.submitName=='STK-3-5-1'&&disease.rootName==code" class="card-page">房颤抗凝出血风险评估HAS-BLED评分：</div>
        <div  v-if="disease.submitName=='STK-3-2-1'&&disease.rootName==code" class="card-page">使用抗凝药物的禁忌证：</div>
        <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&
        ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)
        ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
          <a-select
              v-model:value="disease.defaltValue"
              placeholder="请选择属性类型" allow-clear
              @change="changeSelect($event,disease.submitName)"
          >
            <a-select-option
                v-for="dict in disease.dictList"
                :key="dict.dictCode"
                :value="dict.dictCode"

            >
              {{ dict.dictName }}
            </a-select-option>
          </a-select>

        </a-form-item>
        <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&
          ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)||
          (form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
          <a-radio-group v-model:value="disease.defaltValue">
            <a-radio
                v-for="dict in disease.dictList"
                :key="dict.dictCode"
                :value="dict.dictCode"
                @change="changeRadio($event,disease.submitName)"
            >
              {{ dict.dictName }}
            </a-radio>
          </a-radio-group>
        </a-form-item>
        <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
            <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                        v-for="dict in disease.dictList"
                        :key="dict.dictCode">{{
                dict.dictName
              }}</a-checkbox>
          </a-checkbox-group>
        </a-form-item>
        <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
        </a-form-item>
        <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
          <a-date-picker  v-model:value="disease.defaltValue"
                          :format="disease.rule"
                          :valueFormat="disease.rule"
                          @change="dateInput($event,disease.submitName)"
                          :show-time="disease.rule.length>10 "
                          style="width: 100%;"
          />
        </a-form-item>
        <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
        </a-form-item>
      </a-col>
    </div>
  </a-col>
  <a-col :span="24">
    <div class="card-title">{{diseaseCode}}-4 抗血小板药物使用情况</div>
    <div class="card-page">使用抗血小板药物禁忌证：
    </div>
  </a-col>
  <a-col :span="span23.includes(disease.submitName)?24:12" v-for="disease in main4List">
    <div  v-if="disease.submitName=='STK-4-2-3'&&form1['STK-4-1-1']=='n'" class="card-page">实入院后首剂抗血小板药物给予时间(无禁忌证)：</div>
    <div  v-if="disease.submitName=='STK-4-2-2-1'&&form1['STK-4-1-1']=='n'" class="card-page">&nbsp;</div>
    <div  v-if="disease.submitName=='STK-4-3-2' &&form1['STK-4-1-1']=='n'" class="card-page">药物选择：</div>
    <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-radio-group v-model:value="disease.defaltValue">
        <a-radio
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"
            @change="changeRadio($event,disease.submitName)"
        >
          {{ dict.dictName }}
        </a-radio>
      </a-radio-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-select
          v-model:value="disease.defaltValue"
          placeholder="请选择属性类型" allow-clear
          @change="changeSelect($event,disease.submitName)"

      >
        <a-select-option
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"

        >
          {{ dict.dictName }}
        </a-select-option>
      </a-select>

    </a-form-item>
    <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-date-picker  v-model:value="disease.defaltValue"
                      :format="disease.rule"
                      :valueFormat="disease.rule"
                      @change="dateInput($event,disease.submitName)"
                      :show-time="disease.rule.length>10 "
                      style="width: 100%;"
      />
    </a-form-item>
    <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
        <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                    v-for="dict in disease.dictList"
                    :key="dict.dictCode">{{
            dict.dictName
          }}</a-checkbox>
      </a-checkbox-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&
    (disease.parentName == null ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
    </a-form-item>
  </a-col>
  <a-col :span="24">
    <div class="card-title">{{diseaseCode}}-5 他汀类药物使用情况</div>
  </a-col>
  <a-col :span="span23.includes(disease.submitName)?24:12" v-for="disease in main5List">
    <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-radio-group v-model:value="disease.defaltValue">
        <a-radio
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"
            @change="changeRadio($event,disease.submitName)"
        >
          {{ dict.dictName }}
        </a-radio>
      </a-radio-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-select
          v-model:value="disease.defaltValue"
          placeholder="请选择属性类型" allow-clear
          @change="changeSelect($event,disease.submitName)"

      >
        <a-select-option
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"

        >
          {{ dict.dictName }}
        </a-select-option>
      </a-select>

    </a-form-item>
    <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-date-picker  v-model:value="disease.defaltValue"
                      :format="disease.rule"
                      :valueFormat="disease.rule"
                      @change="dateInput($event,disease.submitName)"
                      :show-time="disease.rule.length>10 "
                      style="width: 100%;"
      />
    </a-form-item>
    <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
        <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                    v-for="dict in disease.dictList"
                    :key="dict.dictCode">{{
            dict.dictName
          }}</a-checkbox>
      </a-checkbox-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&
    (disease.parentName == null ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
    </a-form-item>
    <a-form-item v-if="disease.useType=='select'&&disease.rootName=='STK-5-2'&&(form1['STK-5-1']=='a'||form1['STK-5-1']=='b')" :label="disease.title" :name="disease.submitName">
      <a-select
          v-model:value="disease.defaltValue"
          placeholder="请选择属性类型" allow-clear
          @change="changeSelect($event,disease.submitName)"

      >
        <a-select-option
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"

        >
          {{ dict.dictName }}
        </a-select-option>
      </a-select>

    </a-form-item>

  </a-col>



  <a-col :span="24"> <div class="card-title">{{diseaseCode}}-6 吞咽困难评价
    </div>  </a-col>
    <a-col :span="24" v-for="disease in main6List">

      <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-select
            v-model:value="disease.defaltValue"
            placeholder="请选择属性类型" allow-clear
            @change="changeSelect($event,disease.submitName)"

        >
          <a-select-option
              v-for="dict in disease.dictList"
              :key="dict.dictCode"
              :value="dict.dictCode"

          >
            {{ dict.dictName }}
          </a-select-option>
        </a-select>

      </a-form-item>
      <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
        <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
      </a-form-item>
      <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-radio-group v-model:value="disease.defaltValue">
          <a-radio
              v-for="dict in disease.dictList"
              :key="dict.dictCode"
              :value="dict.dictCode"
              @change="changeRadio($event,disease.submitName)"
          >
            {{ dict.dictName }}
          </a-radio>
        </a-radio-group>
      </a-form-item>
      <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-date-picker  v-model:value="disease.defaltValue"
                        :format="disease.rule"
                        :valueFormat="disease.rule"
                        @change="dateInput($event,disease.submitName)"
                        :show-time="disease.rule.length>10 "
                        style="width: 100%;"
        />
      </a-form-item>
      <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
        <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
          <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                      v-for="dict in disease.dictList"
                      :key="dict.dictCode">{{
              dict.dictName
            }}</a-checkbox>
        </a-checkbox-group>
      </a-form-item>

      <div v-for="code in ['STK-6-1']">
        <a-col span="24" v-if=" form1[code]=='n'">
          <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&
        ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)
        ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
            <a-select
                v-model:value="disease.defaltValue"
                placeholder="请选择属性类型" allow-clear
                @change="changeSelect($event,disease.submitName)"
            >
              <a-select-option
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"

              >
                {{ dict.dictName }}
              </a-select-option>
            </a-select>

          </a-form-item>
          <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&
          ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)||
          (form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
            <a-radio-group v-model:value="disease.defaltValue">
              <a-radio
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"
                  @change="changeRadio($event,disease.submitName)"
              >
                {{ dict.dictName }}
              </a-radio>
            </a-radio-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
              <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                          v-for="dict in disease.dictList"
                          :key="dict.dictCode">{{
                  dict.dictName
                }}</a-checkbox>
            </a-checkbox-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
          </a-form-item>
          <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-date-picker  v-model:value="disease.defaltValue"
                            :format="disease.rule"
                            :valueFormat="disease.rule"
                            @change="dateInput($event,disease.submitName)"
                            :show-time="disease.rule.length>10 "
                            style="width: 100%;"
            />
          </a-form-item>
          <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
          </a-form-item>
        </a-col>
      </div>

    </a-col>
  <a-col :span="24"> <div class="card-title">{{diseaseCode}}-7 预防深静脉血栓的措施
  </div>  </a-col>
  <a-col :span="24" v-for="disease in main7List">
    <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-select
          v-model:value="disease.defaltValue"
          placeholder="请选择属性类型" allow-clear
          @change="changeSelect($event,disease.submitName)"

      >
        <a-select-option
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"

        >
          {{ dict.dictName }}
        </a-select-option>
      </a-select>

    </a-form-item>
    <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
    </a-form-item>
    <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(form1['STK-7-1']=='d'||form1['STK-7-1']=='e')" :label="disease.title" :name="disease.submitName">
      <a-radio-group v-model:value="disease.defaltValue">
        <a-radio
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"
            @change="changeRadio($event,disease.submitName)"
        >
          {{ dict.dictName }}
        </a-radio>
      </a-radio-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-date-picker  v-model:value="disease.defaltValue"
                      :format="disease.rule"
                      :valueFormat="disease.rule"
                      @change="dateInput($event,disease.submitName)"
                      :show-time="disease.rule.length>10 "
                      style="width: 100%;"
      />
    </a-form-item>
    <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
        <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                    v-for="dict in disease.dictList"
                    :key="dict.dictCode">{{
            dict.dictName
          }}</a-checkbox>
      </a-checkbox-group>
    </a-form-item>

    <div v-for="code in []">
      <div  v-if="disease.submitName=='Cap-Adult-7-2-1-1'&&disease.rootName==code&&form1['Cap-Adult-7-5-5']!=null&&form1['Cap-Adult-7-5-5'].includes('a')" class="card-page">无创正压通气（NIV）：</div>
      <div  v-if="disease.submitName=='Cap-Adult-7-3-1'&&disease.rootName==code&&form1['Cap-Adult-7-5-5']!=null&&form1['Cap-Adult-7-5-5'].includes('b')" class="card-page">有创机械通气：</div>
      <div  v-if="disease.submitName=='Cap-Adult-7-4-1'&&disease.rootName==code&&form1['Cap-Adult-7-5-5']!=null&&form1['Cap-Adult-7-5-5'].includes('c')" class="card-page">体外膜肺氧合ECMO：</div>
      <a-col span="24" v-if=" form1[code]=='y'">
        <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&
        ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)
        ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
          <a-select
              v-model:value="disease.defaltValue"
              placeholder="请选择属性类型" allow-clear
              @change="changeSelect($event,disease.submitName)"
          >
            <a-select-option
                v-for="dict in disease.dictList"
                :key="dict.dictCode"
                :value="dict.dictCode"

            >
              {{ dict.dictName }}
            </a-select-option>
          </a-select>

        </a-form-item>
        <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&
          ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)||
          (form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
          <a-radio-group v-model:value="disease.defaltValue">
            <a-radio
                v-for="dict in disease.dictList"
                :key="dict.dictCode"
                :value="dict.dictCode"
                @change="changeRadio($event,disease.submitName)"
            >
              {{ dict.dictName }}
            </a-radio>
          </a-radio-group>
        </a-form-item>
        <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
            <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                        v-for="dict in disease.dictList"
                        :key="dict.dictCode">{{
                dict.dictName
              }}</a-checkbox>
          </a-checkbox-group>
        </a-form-item>
        <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
        </a-form-item>
        <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
          <a-date-picker  v-model:value="disease.defaltValue"
                          :format="disease.rule"
                          :valueFormat="disease.rule"
                          @change="dateInput($event,disease.submitName)"
                          :show-time="disease.rule.length>10 "
                          style="width: 100%;"
          />
        </a-form-item>
        <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
        </a-form-item>
      </a-col>
    </div>

  </a-col>


  <a-col :span="24">
    <div class="card-title">{{diseaseCode}}-8 出院时药物使用情况</div>
  </a-col>
  <a-col :span="24" v-for="disease in main8List">
    <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-select
          v-model:value="disease.defaltValue"
          placeholder="请选择属性类型" allow-clear
          @change="changeSelect($event,disease.submitName)"

      >
        <a-select-option
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"

        >
          {{ dict.dictName }}
        </a-select-option>
      </a-select>

    </a-form-item>
    <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&
    (disease.parentName == null ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
    </a-form-item>
    <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-radio-group v-model:value="disease.defaltValue">
        <a-radio
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"
            @change="changeRadio($event,disease.submitName)"
        >
          {{ dict.dictName }}
        </a-radio>
      </a-radio-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-date-picker  v-model:value="disease.defaltValue"
                      :format="disease.rule"
                      :valueFormat="disease.rule"
                      @change="dateInput($event,disease.submitName)"
                      :show-time="disease.rule.length>10 "
                      style="width: 100%;"
      />
    </a-form-item>
    <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
        <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                    v-for="dict in disease.dictList"
                    :key="dict.dictCode">{{
            dict.dictName
          }}</a-checkbox>
      </a-checkbox-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='number'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
    </a-form-item>

    <div v-for="code in []">
      <a-col span="24" v-if=" form1[code]=='y'">
        <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&
        ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)
        ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
          <a-select
              v-model:value="disease.defaltValue"
              placeholder="请选择属性类型" allow-clear
              @change="changeSelect($event,disease.submitName)"
          >
            <a-select-option
                v-for="dict in disease.dictList"
                :key="dict.dictCode"
                :value="dict.dictCode"

            >
              {{ dict.dictName }}
            </a-select-option>
          </a-select>

        </a-form-item>
        <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&
          ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)||
          (form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
          <a-radio-group v-model:value="disease.defaltValue">
            <a-radio
                v-for="dict in disease.dictList"
                :key="dict.dictCode"
                :value="dict.dictCode"
                @change="changeRadio($event,disease.submitName)"
            >
              {{ dict.dictName }}
            </a-radio>
          </a-radio-group>
        </a-form-item>
        <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
            <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                        v-for="dict in disease.dictList"
                        :key="dict.dictCode">{{
                dict.dictName
              }}</a-checkbox>
          </a-checkbox-group>
        </a-form-item>
        <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
        </a-form-item>
        <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
          <a-date-picker  v-model:value="disease.defaltValue"
                          :format="disease.rule"
                          :valueFormat="disease.rule"
                          @change="dateInput($event,disease.submitName)"
                          :show-time="disease.rule.length>10 "
                          style="width: 100%;"
          />
        </a-form-item>
        <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
        </a-form-item>
      </a-col>
    </div>

  </a-col>
  <a-col v-if="form1['CM-4-3']!='e'"  :span="24">
    <div class="card-title">{{diseaseCode}}-9 卒中健康教育和早期康复评价、重点护理评估情况</div>
  </a-col>
  <a-col>
    <a-col v-if="form1['CM-4-3']!='e'"  :span="24" v-for="disease in main9List">
      <div  v-if="disease.submitName=='STK-9-3-1'" class="card-page">实施戒烟建议/戒烟治疗：</div>
      <div  v-if="disease.submitName=='STK-13-1-1'" class="card-page">提供早期康复医疗服务：</div>
      <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-select
            v-model:value="disease.defaltValue"
            placeholder="请选择属性类型" allow-clear
            @change="changeSelect($event,disease.submitName)"

        >
          <a-select-option
              v-for="dict in disease.dictList"
              :key="dict.dictCode"
              :value="dict.dictCode"

          >
            {{ dict.dictName }}
          </a-select-option>
        </a-select>

      </a-form-item>
      <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&
    (disease.parentName == null ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
      </a-form-item>
      <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-radio-group v-model:value="disease.defaltValue">
          <a-radio
              v-for="dict in disease.dictList"
              :key="dict.dictCode"
              :value="dict.dictCode"
              @change="changeRadio($event,disease.submitName)"
          >
            {{ dict.dictName }}
          </a-radio>
        </a-radio-group>
      </a-form-item>
      <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-date-picker  v-model:value="disease.defaltValue"
                        :format="disease.rule"
                        :valueFormat="disease.rule"
                        @change="dateInput($event,disease.submitName)"
                        :show-time="disease.rule.length>10 "
                        style="width: 100%;"
        />
      </a-form-item>
      <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
        <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
          <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                      v-for="dict in disease.dictList"
                      :key="dict.dictCode">{{
              dict.dictName
            }}</a-checkbox>
        </a-checkbox-group>
      </a-form-item>
      <a-form-item v-if="disease.useType=='number'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
        <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
      </a-form-item>
      <div v-for="code in ['STK-13-0']">
        <a-col span="24" v-if=" form1[code]=='y'">
          <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&
        ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)
        ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
            <a-select
                v-model:value="disease.defaltValue"
                placeholder="请选择属性类型" allow-clear
                @change="changeSelect($event,disease.submitName)"
            >
              <a-select-option
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"

              >
                {{ dict.dictName }}
              </a-select-option>
            </a-select>

          </a-form-item>
          <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&
          ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)||
          (form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
            <a-radio-group v-model:value="disease.defaltValue">
              <a-radio
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"
                  @change="changeRadio($event,disease.submitName)"
              >
                {{ dict.dictName }}
              </a-radio>
            </a-radio-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
              <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                          v-for="dict in disease.dictList"
                          :key="dict.dictCode">{{
                  dict.dictName
                }}</a-checkbox>
            </a-checkbox-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
          </a-form-item>
          <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-date-picker  v-model:value="disease.defaltValue"
                            :format="disease.rule"
                            :valueFormat="disease.rule"
                            @change="dateInput($event,disease.submitName)"
                            :show-time="disease.rule.length>10 "
                            style="width: 100%;"
            />
          </a-form-item>
          <a-form-item v-if="disease.useType=='date1'&&disease.rootName==code
        &&(form1['STK-13-2'] != null && (form1['STK-13-2'].includes('a')||form1['STK-13-2'].includes('b')||form1['STK-13-2'].includes('c')))" :label="disease.title" :name="disease.submitName">
            <a-date-picker  v-model:value="disease.defaltValue"
                            :format="disease.rule"
                            :valueFormat="disease.rule"
                            @change="dateInput($event,disease.submitName)"
                            :show-time="disease.rule.length>10 "
                            style="width: 100%;"
            />
          </a-form-item>
          <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
          </a-form-item>
        </a-col>
      </div>

    </a-col>
  </a-col>

  <a-col :span="24">
    <div class="card-title">{{diseaseCode}}-10 血管功能评估情况</div>
  </a-col>
  <a-col :span="24" v-for="disease in main10List">
    <div  v-if="disease.submitName=='STK-9-3-1'" class="card-page">实施戒烟建议/戒烟治疗：</div>
    <div  v-if="disease.submitName=='STK-13-1-1'" class="card-page">提供早期康复医疗服务：</div>
    <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-select
          v-model:value="disease.defaltValue"
          placeholder="请选择属性类型" allow-clear
          @change="changeSelect($event,disease.submitName)"

      >
        <a-select-option
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"

        >
          {{ dict.dictName }}
        </a-select-option>
      </a-select>

    </a-form-item>
    <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&
    (disease.parentName == null ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
    </a-form-item>
    <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-radio-group v-model:value="disease.defaltValue">
        <a-radio
            v-for="dict in disease.dictList"
            :key="dict.dictCode"
            :value="dict.dictCode"
            @change="changeRadio($event,disease.submitName)"
        >
          {{ dict.dictName }}
        </a-radio>
      </a-radio-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
      <a-date-picker  v-model:value="disease.defaltValue"
                      :format="disease.rule"
                      :valueFormat="disease.rule"
                      @change="dateInput($event,disease.submitName)"
                      :show-time="disease.rule.length>10 "
                      style="width: 100%;"
      />
    </a-form-item>
    <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
        <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                    v-for="dict in disease.dictList"
                    :key="dict.dictCode">{{
            dict.dictName
          }}</a-checkbox>
      </a-checkbox-group>
    </a-form-item>
    <a-form-item v-if="disease.useType=='number'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
      <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
    </a-form-item>
    <div v-for="code in ['STK-13-0']">
      <a-col span="24" v-if=" form1[code]=='y'">
        <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&
        ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)
        ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
          <a-select
              v-model:value="disease.defaltValue"
              placeholder="请选择属性类型" allow-clear
              @change="changeSelect($event,disease.submitName)"
          >
            <a-select-option
                v-for="dict in disease.dictList"
                :key="dict.dictCode"
                :value="dict.dictCode"

            >
              {{ dict.dictName }}
            </a-select-option>
          </a-select>

        </a-form-item>
        <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&
          ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)||
          (form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
          <a-radio-group v-model:value="disease.defaltValue">
            <a-radio
                v-for="dict in disease.dictList"
                :key="dict.dictCode"
                :value="dict.dictCode"
                @change="changeRadio($event,disease.submitName)"
            >
              {{ dict.dictName }}
            </a-radio>
          </a-radio-group>
        </a-form-item>
        <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
            <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                        v-for="dict in disease.dictList"
                        :key="dict.dictCode">{{
                dict.dictName
              }}</a-checkbox>
          </a-checkbox-group>
        </a-form-item>
        <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
        </a-form-item>
        <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
          <a-date-picker  v-model:value="disease.defaltValue"
                          :format="disease.rule"
                          :valueFormat="disease.rule"
                          @change="dateInput($event,disease.submitName)"
                          :show-time="disease.rule.length>10 "
                          style="width: 100%;"
          />
        </a-form-item>
        <a-form-item v-if="disease.useType=='date1'&&disease.rootName==code
        &&(form1['STK-13-2'] != null && (form1['STK-13-2'].includes('a')||form1['STK-13-2'].includes('b')||form1['STK-13-2'].includes('c')))" :label="disease.title" :name="disease.submitName">
          <a-date-picker  v-model:value="disease.defaltValue"
                          :format="disease.rule"
                          :valueFormat="disease.rule"
                          @change="dateInput($event,disease.submitName)"
                          :show-time="disease.rule.length>10 "
                          style="width: 100%;"
          />
        </a-form-item>
        <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
          <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
        </a-form-item>
      </a-col>
    </div>

  </a-col>
  <a-col v-if="form1['CM-4-3']!='e'" :span="24">
    <div class="card-title">{{diseaseCode}}-11 住院期间为患者提供健康教育与出院时提供教育告知五要素情况</div>
  </a-col>
  <a-col v-if="form1['CM-4-3']!='e'"  :span="24">
    <a-col :span="24" v-for="disease in main11List">
      <div  v-if="disease.submitName=='STK-9-3-1'" class="card-page">实施戒烟建议/戒烟治疗：</div>
      <div  v-if="disease.submitName=='STK-13-1-1'" class="card-page">提供早期康复医疗服务：</div>
      <a-form-item v-if="disease.useType=='select'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-select
            v-model:value="disease.defaltValue"
            placeholder="请选择属性类型" allow-clear
            @change="changeSelect($event,disease.submitName)"

        >
          <a-select-option
              v-for="dict in disease.dictList"
              :key="dict.dictCode"
              :value="dict.dictCode"

          >
            {{ dict.dictName }}
          </a-select-option>
        </a-select>

      </a-form-item>
      <a-form-item v-if="disease.useType=='input'&&disease.rootName=='root'&&
    (disease.parentName == null ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
      </a-form-item>
      <a-form-item v-if="disease.useType=='radio'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-radio-group v-model:value="disease.defaltValue">
          <a-radio
              v-for="dict in disease.dictList"
              :key="dict.dictCode"
              :value="dict.dictCode"
              @change="changeRadio($event,disease.submitName)"
          >
            {{ dict.dictName }}
          </a-radio>
        </a-radio-group>
      </a-form-item>
      <a-form-item v-if="disease.useType=='date'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
        <a-date-picker  v-model:value="disease.defaltValue"
                        :format="disease.rule"
                        :valueFormat="disease.rule"
                        @change="dateInput($event,disease.submitName)"
                        :show-time="disease.rule.length>10 "
                        style="width: 100%;"
        />
      </a-form-item>
      <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName=='root'
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
        <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
          <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                      v-for="dict in disease.dictList"
                      :key="dict.dictCode">{{
              dict.dictName
            }}</a-checkbox>
        </a-checkbox-group>
      </a-form-item>
      <a-form-item v-if="disease.useType=='number'&&disease.rootName=='root'&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
        <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
      </a-form-item>
      <div v-for="code in ['STK-13-0']">
        <a-col span="24" v-if=" form1[code]=='y'">
          <a-form-item v-if="disease.useType=='select'&&disease.rootName==code&&
        ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)
        ||(form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
            <a-select
                v-model:value="disease.defaltValue"
                placeholder="请选择属性类型" allow-clear
                @change="changeSelect($event,disease.submitName)"
            >
              <a-select-option
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"

              >
                {{ dict.dictName }}
              </a-select-option>
            </a-select>

          </a-form-item>
          <a-form-item v-if="disease.useType=='radio'&&disease.rootName==code&&
          ((disease.parentName == null ||form1[disease.parentName]==disease.parentValue)||
          (form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue)))" :label="disease.title" :name="disease.submitName">
            <a-radio-group v-model:value="disease.defaltValue">
              <a-radio
                  v-for="dict in disease.dictList"
                  :key="dict.dictCode"
                  :value="dict.dictCode"
                  @change="changeRadio($event,disease.submitName)"
              >
                {{ dict.dictName }}
              </a-radio>
            </a-radio-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='checkbox'&&disease.rootName==code
            &&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-checkbox-group v-model:value="disease.defaultValue"   @change="checkSave($event,disease.submitName)"  >
              <a-checkbox :value="dict.dictCode" :name="disease.submitName"
                          v-for="dict in disease.dictList"
                          :key="dict.dictCode">{{
                  dict.dictName
                }}</a-checkbox>
            </a-checkbox-group>
          </a-form-item>
          <a-form-item v-if="disease.useType=='number'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input-number  v-model:value="disease.defaltValue"  @change="numberInput($event,disease.submitName)"  allow-clear  style="width: 100%;"/>
          </a-form-item>
          <a-form-item v-if="disease.useType=='date'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]==disease.parentValue)" :label="disease.title" :name="disease.submitName">
            <a-date-picker  v-model:value="disease.defaltValue"
                            :format="disease.rule"
                            :valueFormat="disease.rule"
                            @change="dateInput($event,disease.submitName)"
                            :show-time="disease.rule.length>10 "
                            style="width: 100%;"
            />
          </a-form-item>
          <a-form-item v-if="disease.useType=='date1'&&disease.rootName==code
        &&(form1['STK-13-2'] != null && (form1['STK-13-2'].includes('a')||form1['STK-13-2'].includes('b')||form1['STK-13-2'].includes('c')))" :label="disease.title" :name="disease.submitName">
            <a-date-picker  v-model:value="disease.defaltValue"
                            :format="disease.rule"
                            :valueFormat="disease.rule"
                            @change="dateInput($event,disease.submitName)"
                            :show-time="disease.rule.length>10 "
                            style="width: 100%;"
            />
          </a-form-item>
          <a-form-item v-if="disease.useType=='input'&&disease.rootName==code&&(disease.parentName == null ||form1[disease.parentName]!=null&&form1[disease.parentName].includes(disease.parentValue))" :label="disease.title" :name="disease.submitName">
            <a-input  v-model:value="disease.defaltValue"  @change="changeinput($event,disease.submitName)" allow-clear  />
          </a-form-item>
        </a-col>
      </div>

    </a-col>
  </a-col>

   <a-col v-if="form1['CM-4-3']!='e'" :span="24">
    <div  class="card-page">出院时提供教育告知五要素情况：</div>
  </a-col>
</template>

<script setup name="PatientStkForm">
import {ref, reactive, onMounted, watch} from 'vue';
import {message} from "ant-design-vue";


const main3List = ref([]);
const main4List = ref([]);
const main5List = ref([]);
const main6List = ref([]);
const main7List = ref([]);
const main2List = ref([]);
const main1List = ref([]);
const main8List = ref([]);
const main9List = ref([]);
const main10List = ref([]);
const main11List = ref([]);
const cm2List = ref([]);
const span23= ref([
  'STK-1-2-1',
  'STK-1-2-1-1',
  'STK-1-2-2-1',
  'STK-1-3-1',
  'STK-1-3-2',
  'STK-1-4-1',
  'STK-1-4-1-3',
  'STK-1-4-1-4',
  'STK-1-4-1-5',
  'STK-1-4-3-1',
  'STK-1-4-2-1',
  'STK-1-4-2',
  'STK-1-4-2-4',
  'STK-1-4-2-5',
  'STK-1-4-2-6',
  'STK-1-4-2-7',
  'STK-1-4-2-8',
  'STK-1-4-2-9',
  'STK-1-4-5-1',
  'STK-2-2-1',
  'STK-2-2-2-2',
  'STK-2-2-2-1',
  'STK-2-3-1-1',
  'STK-2-3-1-2',
  'STK-2-3-2',
  'STK-2-4-5-1',
  'STK-15-1-0',
  'STK-2-6-2',
  'STK-2-5-1-1',
    'STK-2-5-3-1',
    'STK-2-5-3-2',
    'STK-15-6',
  'STK-15-6-1',
  'STK-15-7',
  'STK-15-7-1',
  'STK-3-1-1',
  'STK-3-4-1',
  'STK-3-5-1',
  'STK-3-2-1',
  'STK-3-2-2',
    'STK-4-3-2',
  'STK-5-7-2-1',
  'STK-5-1',
  'STK-5-2',
  'STK-5-3-1',
  'STK-5-3-2',
  'STK-5-4',
  'STK-5-4-1',
  'STK-5-5-1',
  'STK-5-5-2',
  'STK-5-5-2-1',
  'STK-5-7-1',
  'STK-5-7-2',
]);

const props = defineProps({
// 表单数据
  diseaseList: Object,
  form1: Object,
  diseaseCode:String,
});
onMounted(async() => {
  console.log(JSON.stringify(props))
});
watch(
    () => props.diseaseList,
() => {
  console.log("---------------------=================================")
    for(let i = 0; i < props.diseaseList.length; i ++) {
     if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-2"){
        main2List.value.push(props.diseaseList[i])
      }else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-1"){
        main1List.value.push(props.diseaseList[i])
      } else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-3"){
        main3List.value.push(props.diseaseList[i])
      }else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-4"){
        main4List.value.push(props.diseaseList[i])
      }else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-5"){
       main5List.value.push(props.diseaseList[i])
     } else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-6"){
       main6List.value.push(props.diseaseList[i])
     }else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-7"){
       main7List.value.push(props.diseaseList[i])
     }else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-8"){
       main8List.value.push(props.diseaseList[i])
     }else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-9"){
       main9List.value.push(props.diseaseList[i])
     }else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-10"){
       main10List.value.push(props.diseaseList[i])
     } else if(props.diseaseList[i].diseaseGroup==props.diseaseCode+"-11"){
    main11List.value.push(props.diseaseList[i])
     }
     else if(props.diseaseList[i].diseaseGroup=="CM-2"){
       cm2List.value.push(props.diseaseList[i])
     }
    }

}
);

const changeinput =  (el,data) => {
  props.form1[data] = el.target.value
}
const changeRadio =  (el,data) => {
  props.form1[data] = el.target.value
  let cols = []
  for(let i = 0; i < props.diseaseList.length; i ++) {
    if(data == props.diseaseList[i].parentName && props.diseaseList[i].parentVale != el.target.value){
      props.diseaseList[i].defaltValue = null
      props.diseaseList[i].defaultValue = null
      props.form1[props.diseaseList[i].submitName] = null
      cols.push(props.diseaseList[i].submitName)
    }
    if(cols.includes(props.diseaseList[i].parentName)){
      props.diseaseList[i].defaltValue = null
      props.diseaseList[i].defaultValue = null
      props.form1[props.diseaseList[i].submitName] = null
      cols.push(props.diseaseList[i].submitName)
    }
    if(props.diseaseList[i].submitName == data){
      if(data == 'Cap-Adult-1-3-1' && el.target.value =='n'){
        message.error('该病例不符合上报要求')
      }

    }

  }
}
const checkSave=  (el,data) => {
  props.form1[data] = el
  console.log(el)
  let STK212 =null;
  if((el.length>1 && el.includes("UTD"))|| data == 'STK-2-1-1-1' ){
    for(let i = 0; i < props.diseaseList.length; i ++) {
      if(props.diseaseList[i].submitName == data && (el.length>1 && el.includes("UTD"))){
        props.diseaseList[i].defaultValue=["UTD"]
        props.form1[data] = ["UTD"]
        message.error("填报内容不符合规范，请重新填报");
      }
      if(props.diseaseList[i].submitName == 'STK-2-1-1-1' ){
        if(el.length==1 && el.includes("UTD")){
          STK212 =true;
        }else{
          if(props.form1.value['CM-0-2-3-2']!=null&&props.form1.value['CM-0-2-2-2']!=null){
            let endDate = new Date(form1.value['CM-0-2-3-2'])
            let startDate = new Date(form1.value['CM-0-2-2-2'])
            let diff = endDate.getTime() - startDate.getTime()
            let hours = Math.floor(diff / (3600 * 1000))
            let mins = Math.floor(diff / (60 * 1000))
            console.log("hours:"+hours)
            for(let i = 0; i < diseaseList.value.length; i ++) {
              let name = diseaseList.value[i].submitName;
              if(name == 'STK-2-1-1-2'){
                diseaseList.value[i].defaltValue = hours;
              }
              if(name == 'STK-2-1-2'){
                if(hours<3){
                  diseaseList.value[i].defaltValue = 'a'
                }else  if(mins<270){
                  diseaseList.value[i].defaltValue = 'b'
                }else  if(hours<6){
                  diseaseList.value[i].defaltValue = 'c'
                }else  if(hours<24){
                  diseaseList.value[i].defaltValue = 'd'
                }else{
                  diseaseList.value[i].defaltValue = 'e'
                }
              }
            }
          }
        }
      }
      if(props.diseaseList[i].submitName == 'STK-2-1-2'){
        if(STK212 == true){
          props.diseaseList[i].defaultValue= 'e'
          props.diseaseList[i].defaltValue= 'e'
        }
        if(STK212 == false){
          props.diseaseList[i].defaultValue= null
          props.diseaseList[i].defaltValue= null
        }
      }
    }

  }

}


const changeSelect =  (value,data) => {
  if (typeof value === "undefined"){
    props.form1[data] = null
  }else {
    props.form1[data] = value
  }
}
const numberInput =  (el,data) => {
  props.form1[data] = el
}
const dateInput =  (el,data) => {
  props.form1[data] = el
}

</script>

<style scoped lang="less">
.card-title {
  width: 100%;
  border-left: 5px solid;
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-size: large;
  font-weight: bold;
  padding-left: 2px;
  margin-bottom: 2px;
}
.card-page {
  width: 100%;
  font-weight: bold;
  color: #092b00;
}
.ant-form-item{
  border-bottom:1px solid var(--primary-color);
}
.line {
border-top: 1px solid #b2f1e8; /* 设置横线的样式，比如颜色和宽度 */
margin: 1px 0; /* 设置横线的上下外边距 */
padding-left: -100px!important;
}
</style>
